package com.pjchat.pjchatclient.util;

import com.ita.im.model.ErrorMessageType;

public class ErrorMessageUtil {
	public static String getErrorMessage(ErrorMessageType type) {
		String errorMessage = "";
		switch (type) {
		case USER_REGISTERED:
			errorMessage += "Existent";
			break;
		case USER_NONEXISTENT:
			errorMessage += "Nonexist";
			break;
		case USER_ONLINED:
			errorMessage += "Online";
			break;
		case USER_PASSWORD_WRONG:
			errorMessage += "Wrong password";
			break;
		default:
			errorMessage += "Unpredictable error";
			break;
		}
		return errorMessage;
	}
}
